home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_codecencodings_hk.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  22 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. from test import test_support
  5. from test import test_multibytecodec_support
  6. import unittest
  7.  
  8. class Test_Big5HKSCS(test_multibytecodec_support.TestBase, unittest.TestCase):
  9.     encoding = 'big5hkscs'
  10.     tstring = test_multibytecodec_support.load_teststring('big5hkscs')
  11.     codectests = (('abc\x80\x80\xc1\xc4', 'strict', None), ('abc\xc8', 'strict', None), ('abc\x80\x80\xc1\xc4', 'replace', u'abc\xef\xbf\xbd\xe8\xac\x90'), ('abc\x80\x80\xc1\xc4\xc8', 'replace', u'abc\xef\xbf\xbd\xe8\xac\x90\xef\xbf\xbd'), ('abc\x80\x80\xc1\xc4', 'ignore', u'abc\xe8\xac\x90'))
  12.  
  13.  
  14. def test_main():
  15.     suite = unittest.TestSuite()
  16.     suite.addTest(unittest.makeSuite(Test_Big5HKSCS))
  17.     test_support.run_suite(suite)
  18.  
  19. if __name__ == '__main__':
  20.     test_main()
  21.  
  22.